<template>
  <div>
    <div class="box-title text-center my-4 text-black">{{title}}</div>
    <div class="mx-5">
      <slot />
      <a class="tab-more" :href="more">查看更多</a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    },
    more: {
      type: String
    }
  }
};
</script>

<style lang="scss" scoped>
@import "../assets/style/_variables.scss";

.box-title {
  font-size: 24px;
  &::before,
  &::after {
    content: "";
    display: inline-block;
    margin: 0 10px;
    vertical-align: 8px;
    width: 50px;
    height: 1px;
    background: map-get($colors, "border-1");
  }
}

.tab-more {
  display: block;
  margin: 15px auto;
  padding: 7px 0;
  width: 350px;
  border: 2px solid map-get($colors, "primary");
  color: map-get($colors, "primary");
  text-align: center;
  transition: all 0.3s ease-in-out;

  &:hover {
    background: map-get($colors, "primary");
    color: map-get($colors, "white");
  }
}
</style>